<link rel="stylesheet" type="text/css" href="/Apps/Common/Builder/admin.min.css">
<script src="/inc/static/jquery-2.0.3.min.js"></script> 

<div class="builder builder-form-box">
    <notempty name="tab_nav">
        <div class="builder-tabs builder-form-tabs">
            <ul class="nav nav-tabs">
                <volist name="tab_nav.tab_list" id="tab">
                    <li class="<php>if($tab_nav['current_tab'] == $key) echo 'active';</php>"><a href="{$tab.href}">{$tab.title}</a></li>
                </volist>
            </ul>
        </div>
    </notempty>

    {// 数据列表 }
    <div class="builder-container builder-form-container">
        <div class="row">
            <div class="col-xs-12">
                <form action="{$post_url}" method="post" class="form builder-form">
                    <volist name="form_items" id="form" key="k">
                        <div class="form-group item_{$form.name} {$form.extra_class}">
                            <php>if($form['type'] != 'group' && $form['type'] != 'hidden'):</php>
                                <label class="item-label">{$form.title}<notempty name="form.tip"><span class="check-tips">（<span class="small">{$form.tip}</span>）</span></notempty></label>
                            <php>endif;</php>
                            <div class="controls">

                                <switch name="form.type">

                                    {// 隐藏 }
                                    <include file='Apps/Common/Builder/widget/hidden.html' type='' />
                                    {// 数字 }
                                    <include file='Apps/Common/Builder/widget/num.html' type='' />
                                    {// 字符串 }
                                    <include file='Apps/Common/Builder/widget/text.html' type='' />
                                    {// 文本 }
                                    <include file='Apps/Common/Builder/widget/textarea.html' type='' />
                                    {// 数组 }
                                    <include file='Apps/Common/Builder/widget/array.html' type='' />
                                    {// 密码 }
                                    <include file='Apps/Common/Builder/widget/password.html' type='' />
                                    {// 单选按钮 }
                                    <include file='Apps/Common/Builder/widget/radio.html' type='' />
                                    {// 复选框 }
                                    <include file='Apps/Common/Builder/widget/checkbox.html' type='' />
                                    {// 下拉框 }
                                    <include file='Apps/Common/Builder/widget/select.html' type='' />
                                    {// 图标 }
                                    <include file='Apps/Common/Builder/widget/icon.html' type='' />
                                    {// 日期 }
                                    <include file='Apps/Common/Builder/widget/date.html' type='' />
                                    {// 时间 }
                                    <include file='Apps/Common/Builder/widget/time.html' type='' />
                                    {// 图片 }
                                    <include file='Apps/Common/Builder/widget/picture.html' type='' />
                                    {// 图片(多图) }
                                    <include file='Apps/Common/Builder/widget/pictures.html' type='' />
                                    {// 文件 }
                                    <include file='Apps/Common/Builder/widget/file.html' type='' />
                                    {// 多文件 }
                                    <include file='Apps/Common/Builder/widget/files.html' type='' />
                                    {// 编辑器 kindeditor }
                                    <include file='Apps/Common/Builder/widget/kindeditor.html' type='' />
                                    {// 编辑器 simditor }
                                    <include file='Apps/Common/Builder/widget/simditor.html' type='' />
                                    {// 标签 }
                                    <include file='Apps/Common/Builder/widget/tags.html' type='' />
                                    {// 拖动排序 }
                                    <include file='Apps/Common/Builder/widget/board.html' type='' />

                                    <case value="group">
                                        <div class="builder-tabs builder-form-tabs">
                                            <ul class="nav nav-tabs">
                                                <volist name="form.options" id="li" key="group_k">
                                                    <li data-tab="tab{$group_k}" <eq name="group_k" value="1">class="active"</eq>><a href="#tab{$group_k}" data-toggle="tab">{$li.title}</a></li>
                                                </volist>
                                            </ul>
                                        </div>

                                        <div class="builder-container builder-form-container">
                                            <div class="tab-content">
                                                <volist name="form.options" id="tab" key="group_k">
                                                    <div id="tab{$group_k}" class='tab-pane <eq name="group_k" value="1">active</eq> tab{$group_k}'>
                                                        <div class="controls">
                                                            <volist name="tab.options" id="tab_form" key="tab_k">
                                                                <div class="form-group {$tab_form.extra_class}">
                                                                    <label class="item-label">{$tab_form.title}<notempty name="tab_form.tip"><span class="check-tips">（{$tab_form.tip}）</span></notempty></label>
                                                                    <div class="controls">

                                                                        <switch name="tab_form.type">
                                                                            <include file='Apps/Common/Builder/widget/hidden.html' type='tab_' />
                                                                            {// 数字 }
                                                                            <include file='Apps/Common/Builder/widget/num.html' type='tab_' />
                                                                            {// 字符串 }
                                                                            <include file='Apps/Common/Builder/widget/text.html' type='tab_' />
                                                                            {// 文本 }
                                                                            <include file='Apps/Common/Builder/widget/textarea.html' type='tab_' />
                                                                            {// 数组 }
                                                                            <include file='Apps/Common/Builder/widget/array.html' type='tab_' />
                                                                            {// 密码 }
                                                                            <include file='Apps/Common/Builder/widget/password.html' type='tab_' />
                                                                            {// 单选按钮 }
                                                                            <include file='Apps/Common/Builder/widget/radio.html' type='tab_' />
                                                                            {// 复选框 }
                                                                            <include file='Apps/Common/Builder/widget/checkbox.html' type='tab_' />
                                                                            {// 下拉框 }
                                                                            <include file='Apps/Common/Builder/widget/select.html' type='tab_' />
                                                                            {// 图标 }
                                                                            <include file='Apps/Common/Builder/widget/icon.html' type='tab_' />
                                                                            {// 日期 }
                                                                            <include file='Apps/Common/Builder/widget/date.html' type='tab_' />
                                                                            {// 时间 }
                                                                            <include file='Apps/Common/Builder/widget/time.html' type='tab_' />
                                                                            {// 图片 }
                                                                            <include file='Apps/Common/Builder/widget/picture.html' type='tab_' />
                                                                            {// 图片(多图) }
                                                                            <include file='Apps/Common/Builder/widget/pictures.html' type='tab_' />
                                                                            {// 文件 }
                                                                            <include file='Apps/Common/Builder/widget/file.html' type='tab_' />
                                                                            {// 多文件 }
                                                                            <include file='Apps/Common/Builder/widget/files.html' type='tab_' />
                                                                            {// 编辑器 kindeditor }
                                                                            <include file='Apps/Common/Builder/widget/kindeditor.html' type='tab_' />
                                                                            {// 编辑器 simditor }
                                                                            <include file='Apps/Common/Builder/widget/simditor.html' type='tab_' />
                                                                            {// 标签 }
                                                                            <include file='Apps/Common/Builder/widget/tags.html' type='tab_' />
                                                                            {// 拖动排序 }
                                                                            <include file='Apps/Common/Builder/widget/board.html' type='tab_' />
                                                                        </switch>

                                                                    </div>
                                                                </div>
                                                            </volist>
                                                        </div>
                                                    </div>
                                                </volist>
                                            </div>
                                        </div>
                                    </case>

                                </switch>
                            </div>
                        </div>
                    </volist>
                    <empty name="form_items">
                        <div class="builder-data-empty text-center">
                            <div class="empty-info">
                                <i class="fa fa-database"></i> 暂时没有数据<br>
                              
                            </div>
                        </div>
                    </empty>
                    <div class="form-group">
                        <button class="btn btn-primary btn-block submit ajax-post visible-xs visible-sm" type="submit" target-form="builder-form">确定</button>
                        <button class="btn btn-primary submit ajax-post visible-md-inline visible-lg-inline" type="submit" target-form="builder-form">确定</button>
                        <button class="btn btn-default return visible-md-inline visible-lg-inline" onclick="javascript:history.back(-1);return false;">返回</button>
                        
                        
                       <!-- <button  type="submit" target-form="builder-form">确定</button> -->
                        
                        
                    </div>
                </form>
            </div>
        </div>
    </div>


    {// 额外功能代码 }
    {$extra_html}
</div>
<script src="/Apps/Common/Builder/admin.min.js"></script>

